package demo;

import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;

/**
 * @author 江岸
 * @version V1.0
 * @ClassName: TestCode
 * @description:
 * @date 2020/12/2715:49
 * @since V1.0
 */
public class TestCode {
    public static void main(String[] args) {

        demo demo = new demo();
        demo.eat();
        demo.play();
        demo.good();
        Animal a = demo;
        a.eat();
        a.good();
//        String str = "<p>2.5%</p>";
//        int i = str.indexOf('%');
//        String substring = str.substring(3, i);
//        double v = Double.parseDouble(substring);
//        System.out.println(v);
//         String str = "abc";
//        String[] split = str.split(",");
//        List<String> strings = Arrays.asList(split);
//        System.out.println(strings);
//        ArrayList arrayList = new ArrayList(strings);
//        System.out.println(arrayList);
//        demo.setNum((int) (10*Math.random()));
//        demo.x = 13;
//            new Thread(){
//                @Override
//                public void run() {
//                    //demo.setNum((int) (10*Math.random()));
//                    System.out.println(Thread.currentThread().getName()+"==="+demo.getNum().get());
//                    System.out.println(demo.x);
//                }
//            }.start();
//        new Thread(){
//            @Override
//            public void run() {
//                //demo.setNum((int) (10*Math.random()));
//                System.out.println(Thread.currentThread().getName()+"==="+demo.getNum().get());
//                System.out.println(demo.x);
//            }
//        }.start();

    }
}
